﻿namespace MITC.Portal.Services.News
{
    #region -----------------refer-----------------------
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Publishing;
    using Mitc.Portal.Core.Entitys.News;

    #endregion

    public interface INews
    {
        #region -------------------CRUD----------------------
        void CreatePage(PublishingWeb web ,NewsEntity enti);

        void UpdatePage(PublishingPage page, PublishingWeb web, NewsEntity enti);

        void DeletePage(PublishingWeb web, string pageName);

        void DeletePageByPageId(PublishingWeb web, int pageid);

        List<NewsEntity> GetNewsEntity(PublishingWeb web);

        NewsEntity GetNewsEntityById(PublishingSite site , int itemId);

        #endregion
        }
}
